

import request from "@/request/request.js";

/**
 * 获取积分明细
 * @param object data
 *
 */
export function getScoreLists(data) {
    return request.get("apicrzs/user/score/list", data);
}
export function getScoresumLists(data) {
    return request.get("apicrzs/user/score/sum", data);
}
export function getApparatusScoreLists(data) {
    return request.get("apicrzs/user/score/apparatus", data);
}
export function getAccumulateScoreLists(data) {
    return request.get("apicrzs/user/score/accumulate", data);
}
/**
 * 我的页面-获取积分收益详情
 * @param object data
 *
 */
export function userScoreStatistics(data) {
    return request.get("apicrzs/user/score/statistics", data);
}
/**
 * 积分可提现余额
 * @param object data
 */
export function userScoreUsable(data) {
    return request.get("apicrzs/user/score/usable", data);
}
/**
 * 积分提现
 * @param object data
 */
export function userScoreTake(data) {
    return request.get("apicrzs/user/score/take", data);
}

/**
 * 积分提现
 * @param object data
 */
export function getUserScoreList(data) {
    return request.get("apicrzs/user/score/take", data);
}
/**
 * 全部银行卡列表
 * @param object data
 */
export function getAllBankList(data) {
    return request.get("apicrzs/buy/bank/list", data);
}
/**
 * 用户银行卡列表
 * @param object data
 */
export function getBankList(data) {
    return request.get("apicrzs/user/bank/list", data);
}
/**
 * 认证基本信息
 * @param object data
 */
export function saveVerification(data) {
    return request.post("apicrzs/user/verification", data);
}
/**
 * 添加银行卡
 * @param object data
 */
export function saveCardInfo(data) {
    return request.post("apicrzs/user/bank/create", data);
}
/**
 * 查询可提现余额
 * @param object data
 */
export function queryResidueMoney(data) {
    return request.get("apicrzs/user/score/usable");
}
/**
 * 提现
 * @param object data
 */
export function saveCash(data) {
    return request.post("apicrzs/user/extract/cash",data);
}

/**
 * 例子
 */
export function getResetCart(data) {
    return request.post("v2/reset_cart", data);
}


